<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<s:iterator value="listProduct" id="list" status="sta">
	<s:if test="#sta.count < 5">
	<div class="p-item">
		<img class="ribbon-hot" src="images/ico_hot.png"/>
		<a href="getProductShow.action?productId=<s:property value='#list[0].id'/>&categoryid=<s:property value='#list[0].category.id'/>"/>
		<img class="lazy" src="images/default.png" data-original="<%=basePath%>/upload/product/<s:property value='#list[0].imguuid'/>" alt="hot"/></a>
		<p>
			<span class="p-name"><s:property value="#list[0].title"/></span>
			<span class="p-price">￥<s:property value="#list[0].price"/></span>
			
		</p>
	</div>
	</s:if>
</s:iterator>